function $(selector){
	return document.querySelector(selector);
}


var inside = $('#in'),
		out = $('#out'),
		city = $('#city'),
		options = $('#options'),
		beijing = $('#beijing'),
		shanghai = $('#shanghai'),
		tianjin = $('#tianjin'),
		hangzhou = $('#hangzhou'),
		company = $('#company'),
		wrap = $('#wrap');

inside.onclick = function(){
	wrap.style.display = 'block';
	company.style.display = 'none';
}
out.onclick = function(){
	wrap.style.display = 'none';
	company.style.display = 'block';
};

city.onchange = function(){
	beijing.style.display = 'none';
	shanghai.style.display = 'none';
	tianjin.style.display = 'none';
	hangzhou.style.display = 'none';
	switch(this.value){
		case '北京': beijing.style.display = 'block';break;
		case '上海': shanghai.style.display = 'block';break;
		case '天津': tianjin.style.display = 'block';break;
		case '杭州': hangzhou.style.display = 'block';break;
	}
};